how to read data value of a module

Hello,

i need to get data  value from the current module using column name .

Thanks in advance

my code :  

Module m = current
print name(m) "\n" 
  Column c
  for c in m do{
              
        val= m.c
   print title c " : " val "\n"
    } 

 

 

I have an error in " val=m.c" 


Sana.Mejri - Wed Jul 26 09:38:33 EDT 2017

Re: ho to read data value of a module
Mike.Scharnow - Wed Jul 26 09:55:56 EDT 2017

Hello,

it is not quite clear what you want to achieve.

A View has several Columns. In a view you see the data of objects, not of modules.

Are you looking for something like this?

Module m = current
print name(m) "\n" 
string val
Object o
for o in m do {
  Column c
  for c in m do{
              
        val= text(c,o)
   print title c "of object " (o."Absolute Number" "") " : " val "\n"
    } 
}

 

Re: ho to read data value of a module
Sana.Mejri - Wed Jul 26 10:04:23 EDT 2017

Mike.Scharnow - Wed Jul 26 09:55:56 EDT 2017

Hello,

it is not quite clear what you want to achieve.

A View has several Columns. In a view you see the data of objects, not of modules.

Are you looking for something like this?

Module m = current
print name(m) "\n" 
string val
Object o
for o in m do {
  Column c
  for c in m do{
              
        val= text(c,o)
   print title c "of object " (o."Absolute Number" "") " : " val "\n"
    } 
}

 

Yes , this is what I'm looking for . Thank you so much